// BaseToolbarView.cpp : implementation file
//

#include "stdafx.h"
#include "BaseToolbarView.h"



// CBaseToolbarView

IMPLEMENT_DYNCREATE(CBaseToolbarView, CFormView)

CBaseToolbarView::CBaseToolbarView()
	: CFormView(CBaseToolbarView::IDD)
{

}

CBaseToolbarView::~CBaseToolbarView()
{
}

void CBaseToolbarView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
}

BEGIN_MESSAGE_MAP(CBaseToolbarView, CFormView)
    ON_WM_SIZE()
END_MESSAGE_MAP()


// CBaseToolbarView diagnostics

#ifdef _DEBUG
void CBaseToolbarView::AssertValid() const
{
	CFormView::AssertValid();
}

#ifndef _WIN32_WCE
void CBaseToolbarView::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}
#endif
#endif //_DEBUG


// CBaseToolbarView message handlers


BOOL CBaseToolbarView::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)
{
    // TODO: Add your specialized code here and/or call the base class

    return CFormView::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);
}


void CBaseToolbarView::OnInitialUpdate()
{
    CFormView::OnInitialUpdate();

    // TODO: Add your specialized code here and/or call the base class
}


BOOL CBaseToolbarView::OnCommand(WPARAM wParam, LPARAM lParam)
{
    // TODO: Add your specialized code here and/or call the base class

    return CFormView::OnCommand(wParam, lParam);
}


void CBaseToolbarView::OnSize(UINT nType, int cx, int cy)
{
    CFormView::OnSize(nType, cx, cy);

    //if (m_wndToolBar.GetSafeHwnd())
    //{
    //    CRect rectWindow, rectView;
    //    GetWindowRect(&rectView);
    //    m_wndToolBar.GetWindowRect(&rectWindow);
    //    m_wndToolBar.SetWindowPos(NULL, 0, 0, cx-rectWindow.left+rectView.left-FM_NEW_TOOLBAR_MARGIN, rectWindow.Height(), SWP_NOMOVE|SWP_NOOWNERZORDER|SWP_NOZORDER);
    //}
    // TODO: Add your message handler code here
}
